<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

{% load i18n %}
<head>
<title>{{config.siteTitle}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="{{config.mainDescription}}" name="description">
<meta content="{{config.mainKeyword}}" name="keywords">
<meta content="7 days" name="revisit-after">
<meta content="{{config.siteHome}}" name="Gernarator">
<meta content="{{config.siteHome}}" name="Author">
<link rel="stylesheet" href="/res/css/default.css" type="text/css">
<script type="text/javascript" src="/res/js/main.js"></script>
{% block rss %}
<link rel="alternate" type="application/atom+xml" title="{{config.siteTitle}} - Atom" href="{{config.siteHome}}feeds/atom/" />
<link rel="alternate" type="application/rss+xml" title="{{config.siteTitle}} - RSS" href="{{config.siteHome}}feeds/rss2/" />
<link rel="service.post" type="application/atom+xml" title="{{config.siteTitle}} - Atom" href="{{config.siteHome}}feeds/atom/" />
{% endblock %}
</head>
<body>
<div id="wrapper">
	<div id="header">
		<h1><a href="{{config.siteHome}}">{{config.mainTitle}}</a></h1>
		<h2><a href="{{config.siteHome}}">{{config.siteTitle}}</a></h2>
        <h3>
            <a href="{{config.siteHome}}feeds/rss2/"> Rss2</a>&nbsp;&nbsp;
            <a href="{{config.siteHome}}feeds/atom/"> Atom</a>
        </h3>
		<blockquote id="logo"><image src="{{config.logoPath}}" alt="Jumang logo" width="66" height="87" longdesc="{{config.siteHome}}"></image>
		</blockquote>
	</div>


	  <div id="maincontent">
		 <div id="colThree">
		
			<div id="links">
				<h3>{% trans "My Friends" %}</h3>
				{{links}}	
			</div>
			
			 {% block message%}
			 <div class="messages">
				<h3>{% trans 'Messages' %}</h3>

				 {% if messages %}
					{% for message in messages %}
					<p>
						<strong>{{message.name|escape}}:</strong>{{message.content|escape}}
					</p>
					{% endfor %}
				 {% endif %}
				<p>
					<form name="comment" action="/client/addMessage/" method="post">
						<input type="hidden" name="address" value="" />
						<p>
							{% trans "User Name" %}:
						</p>
						<p>
							<input name="name" type='text' size=20 />
						</p>
						<p>
							{% trans "Content" %}:
						</p>
						<p>
							<textarea name="content" rows="5" cols="18" ></textarea>
						</p>
						<p class="subbutton">
							<input type='submit' value='{% trans "OK" %}' />
						</p>
					  </form>
				</p>
			</div>
			{% endblock message%}
			

		</div>
		
		<div id="colTwo">
			<div id="menu">
				<ul>
				{% block nav %}
					<li></li>
					<li>
						<a href="{{config.siteHome}}main/notes/">
						{% trans "Notes" %}</a>
					</li>
					<li>
						<a href="{{config.resourceHome}}main/downloads/">
						{% trans "Download" %}</a>
					</li>
					<li>
						<a href="{{config.albumHome}}main/albums/">
						{% trans "Albums" %}</a>
					</li>
					<li>
						<a href="{{config.privateHome}}main/albums/">
						{% trans "Person Albums" %}</a>
					</li>
					<li>
						<a href="{{config.siteHome}}main/messages/">
						{% trans "Messages" %}</a>
					</li>
					<li>
						{% ifequal config.currentHome config.resourceHome %}
							<a href="{{config.currentHome}}admin/files/">
						{% else %}{% ifequal config.currentHome config.albumHome %}
							<a href="{{config.currentHome}}admin/pictures/">
						{% else %}{% ifequal config.currentHome config.privateHome %}
							<a href="{{config.currentHome}}admin/pictures/">
						{% else %}
							<a href="{{config.currentHome}}admin/notes/">
						{% endifequal %}{% endifequal %}{% endifequal %}
						{% trans "Management" %}
						</a>
					</li>
					<li><a href="{{config.siteHome}}main/about/">
						{% trans "About me" %}</a>
					</li>
					
					
					{% ifequal config.currentHome config.privateHome %}
						{% if unchecked %}
						{% else %}
							<li>
								<a href="{{config.currentHome}}client/logout/">
								{% trans "Logout" %}
								</a>
							</li>
						{% endif %}
					{% endifequal %}	
					
				{% endblock nav %}
				</ul>
			</div>

			{% block tags %}
			{% endblock tags %}
			
			
			{% block comments %}
			{% endblock comments %}
			
			{% block ads1 %}
			<div id="ads1">
				<p></p>
				<p></p>
				<script type="text/javascript"><!--
				google_ad_client = "pub-5117142125166299";
				/* jumag1,120x90, 创建于 08-9-3 */
				google_ad_slot = "8618392017";
				google_ad_width = 120;
				google_ad_height = 90;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</div>
			{% endblock ads1 %}
		 </div>
		<div id="colOne" class="latest-post">

		  {% block content %}
		  {% endblock content %}

			{% block ads %}
			<div id="ads">
				<script type="text/javascript"><!--
				google_ad_client = "pub-5117142125166299";
				/* jumang,468x60, 创建于 08-9-3 */
				google_ad_slot = "9558935592";
				google_ad_width = 460;
				google_ad_height = 60;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</div>
			{% endblock ads %}
		</div>

    </div>
	{% block comment1 %}
	<div id="footer">
		<script type="text/javascript">
			var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
			document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
		</script>
		<script type="text/javascript">
			var pageTracker = _gat._getTracker("UA-5568932-1");
			pageTracker._trackPageview();
		</script>
		<p><a href="http://jum.appspot.com" target="_blank">Designed by  Jumang</a>.&nbsp;
			<script src="http://s90.cnzz.com/stat.php?id=1038423&web_id=1038423&show=pic" language="JavaScript" charset="gb2312"></script>
		</p>
	</div>
	{% endblock comment1 %}
	<script type="text/javascript">
		setContentWidth();
	</script> 
</div>

</body>
</html>
